const {myfuwu} =require('../../../util/api')
Page({
  /**
   * 页面的初始数据
   */
  data: {
   
    memberId:"",
    isShow: true,
    currentTab:"3"
  },
  tabNav(e) {
    
    if (this.data.currentTab === e.target.dataset.current) {
      
      return false;
      
    } else 

      var showMode = e.target.dataset.current == 0;

      this.setData({
        currentTab: e.target.dataset.current,
        isShow: showMode,
      })
      let p={
        memberId:this.data.memberId,
        pageNum:1,
        examineStatus:this.data.currentTab
      }
      myfuwu(p).then(res=>{
        
      })

    },
    
    onShow(){
     this.setData({
       memberId:wx.getStorageSync('memberId')
     })
     let p={
       memberId:this.data.memberId,
       pageNum:1,
       examineStatus:3
     }
     myfuwu(p).then(res=>{
       
     })
    }
    
    
    
    
    })
